package sk.openit.xml.jaxp.dom;


public class RunApp {

	public static void main(String[] args) {
//		DbConfigReaderEchoOnly dom = new DbConfigReaderEchoOnly("database-config.xml");
//		dom.process();
//
		DbConfigReader dom = new DbConfigReader("database-config.xml");
		dom.process();	
		System.out.println(dom.getConfig());

		DbConfigWriter dbConfigWriter = new DbConfigWriter("dbc.xml");
		dbConfigWriter.serialize(dom.getConfig());
	}
}
